package app;

public class AppDispatch {

    static {
        System.loadLibrary("dispatch");
    }


    public String Init(String path) {

        String msg = this.InitEnv("env",path,0,0);

        this.SetKey("hello","aaa");
        this.GetKey("hello");

        this.SendMessage("hello");
        this.PostMessage("hello");
        this.RecvMessage("hello");
        this.UnInitEnv("hello","aaa");


        return msg;
    }

    public static native String SendMessage(String msg);
    public static native String PostMessage(String msg);
    public static native String RecvMessage(String msg);
    public static native String InitEnv(String root,String code,int type, int exit);
    public static native String UnInitEnv(String key,String value);
    public static native String GetKey(String key);
    public static native String SetKey(String key,String value);
}
